<?php
	$form = new ItemForm();
?>
<h1 class="heading">Visualizar Item</h1>

<table class="form">
  <tbody>
  <tr><th colspan="2" class="title">Detalhes Item</th></tr>
    <tr>
      <th><?php echo $form['id_item']->renderLabel() ?>:</th>
      <td><?php echo $item->getIdItem() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['id_tipo']->renderLabel() ?>:</th>
      <td><?php echo $item->getIdTipo() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['id_item_pai']->renderLabel() ?>:</th>
      <td><?php echo $item->getIdItemPai() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['id_usuario']->renderLabel() ?>:</th>
      <td><?php echo $item->getIdUsuario() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['nm_item']->renderLabel() ?>:</th>
      <td><?php echo $item->getNmItem() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['st_item']->renderLabel() ?>:</th>
      <td><?php echo $item->getStItem() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['is_top']->renderLabel() ?>:</th>
      <td><?php echo $item->getIsTop() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['ds_item']->renderLabel() ?>:</th>
      <td><?php echo $item->getDsItem() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['ds_resumo_item']->renderLabel() ?>:</th>
      <td><?php echo $item->getDsResumoItem() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['ds_tags']->renderLabel() ?>:</th>
      <td><?php echo $item->getDsTags() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['ds_url']->renderLabel() ?>:</th>
      <td><?php echo $item->getDsUrl() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['slug']->renderLabel() ?>:</th>
      <td><?php echo $item->getSlug() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['created_at']->renderLabel() ?>:</th>
      <td><?php echo $item->getCreatedAt() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['updated_at']->renderLabel() ?>:</th>
      <td><?php echo $item->getUpdatedAt() ?></td>
    </tr>
  </tbody>
</table>

<hr />

<?php
	comandos_form(
		link_to(
			':: Listar ::',
			'produto/list',
			array('class' => 'botao')
		),
		link_to(
			':: Editar ::',
			'produto/edit?id_item='.$item->getIdItem(),
			array('class' => 'botao')
		)
	);
?>